package com.xzq.erp.service;

import com.xzq.erp.domain.dto.PageDTO;
import com.xzq.erp.domain.dto.ProductStockDTO;
import com.xzq.erp.domain.dto.WarehouseStockRecordDTO;
import com.xzq.erp.domain.po.ProductStock;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xzq.erp.domain.query.ProductStockPageQuery;
import com.xzq.erp.domain.vo.ProductStockListVO;
import com.xzq.erp.domain.vo.ProductStockVO;
import com.xzq.erp.utils.Response;

import java.util.List;

/**
 * <p>
 * 商品库存表 服务类
 * </p>
 *
 * @author xzq
 * @since 2025-05-26
 */
public interface IProductStockService extends IService<ProductStock> {

    /**
     * 商品库存详情
     * @param id
     * @return
     */
    List<ProductStockVO> getProductStock(Long id);

    /**
     * 商品库存分页查询
     * @param query
     * @return
     */
    PageDTO<ProductStockListVO> getProductStockList(ProductStockPageQuery query);

    /**
     * 获取所有采购清单
     * @return
     */
    List<ProductStockListVO> getAllPurchaseLists();

    /**
     * 修改商品状态
     * @param warehouseStockRecord
     */
    void updateProductRecord(WarehouseStockRecordDTO warehouseStockRecord);

    /**
     * 添加商品采购信息
     * @param productStockDTO
     */
    void addProductStock(ProductStockDTO productStockDTO);

    /**
     * 修改商品采购信息
     * @param productStockDTO
     */
    void updateProductStock(ProductStockDTO productStockDTO);
}
